<%-- 
    Document   : productsImage
    Created on : Aug 27, 2011, 6:36:38 PM
    Author     : Thanhnd
--%>

<%@page import="accessor.Products"%>
<%@page import="accessor.ProductsAccessor"%>
<%@include file="header.jsp" %>

<!-- Reset Stylesheet -->
<link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />

<!-- Main Stylesheet -->
<link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />

<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />	

<!-- Colour Schemes

Default colour scheme is green. Uncomment prefered stylesheet to use it.

<link rel="stylesheet" href="resources/css/blue.css" type="text/css" media="screen" />

<link rel="stylesheet" href="resources/css/red.css" type="text/css" media="screen" />  

-->

<!-- Internet Explorer Fixes Stylesheet -->

<!--[if lte IE 7]>
        <link rel="stylesheet" href="resources/css/ie.css" type="text/css" media="screen" />
<![endif]-->

<!--                       Javascripts                       -->

<!-- jQuery -->
<script type="text/javascript" src="resources/scripts/jquery-1.3.2.min.js"></script>

<!-- jQuery Configuration -->
<script type="text/javascript" src="resources/scripts/simpla.jquery.configuration.js"></script>

<!-- Facebox jQuery Plugin -->
<script type="text/javascript" src="resources/scripts/facebox.js"></script>

<!-- jQuery WYSIWYG Plugin -->
<script type="text/javascript" src="resources/scripts/jquery.wysiwyg.js"></script>
<% ProductsAccessor pa = new ProductsAccessor();
    int id = Integer.parseInt(request.getParameter("id"));
    Products product = pa.getProductById(id);
%>
<h2>Product Edit <%= product.getProductName()%> </h2>
<p id="page-intro"></p>

<div class="clear"></div>
<ul class="shortcut-buttons-set">


    <li><a class="shortcut-button new-page" href="#"><span class="png_bg">
                Category List
            </span></a></li>

    <li><a class="shortcut-button upload-image" href="#"><span class="png_bg">
                Ware House
            </span></a></li>

</li>

</ul>
<div class="clear"></div>
<div class="content-box"><!-- Start Content Box -->

    <div class="content-box-header">

        <h3 style="cursor: s-resize; ">Product</h3>

        <ul class="content-box-tabs">

            <li><a href="#tab2">Forms</a></li>
        </ul>

        <div class="clear"></div>

    </div> <!-- End .content-box-header -->

    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab2" style="display: none; ">

            <form action="../FileServlet" method="post" enctype="multipart/form-data" name="productForm" id="productForm"><br><br>
                <table width="400px" align="center" border=0 >
                    <tr>
                        <td align="center" colspan=2 style="
                            font-weight:bold;font-size:20pt;">
                            Image Details</td>
                    </tr>

                    <tr>
                        <td align="center" colspan=2>&nbsp;</td>
                    </tr>

                    <tr>
                        <td>Image Link: </td>
                        <td>
                            <input type="file" name="file" id="file">
                        <td>
                    </tr>

                    <tr>
                        <td></td>
                        <td><input type="submit" name="Submit" value="Submit"></td>
                    </tr>
                    <tr>
                        <td colspan="2">&nbsp;</td>
                    </tr>

                </table>
            </form>

        </div> <!-- End #tab2 -->        

    </div> <!-- End .content-box-content -->

</div>


<%@include file="footer.jsp" %>
